
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel=stylesheet href='include/hoj.css' type='text/css'>
</head>
<body>
<center>
<div style="width:90%; text-align:left">
<img src="image/logo.png"/>
</div>
<table width=96%> 
	<tr align="center" class='hd' valign="top">
				<th><a href="faqs.php">F.A.Qs</a></th>
		<th><a href="./bbs.php">Web Board</a></th>
		<th><a href="./">Home</a></th>
		<th><a href="./problemset.html">ProblemSet</a></th>
		<th><a href="./status.php">Status</a></th>
		<th><a href="./ranklist.php">Ranklist</a></th>
		<th><a href="./contest.php">Contest</a></th>
		<th><a href=loginpage.php>Login</a></th><th><a href=registerpage.php>Register</a></th>	</tr>
</table>
</center>
<center>
<div class="notice">
	<div>
		<B>Notice:</B>鉴于种种原因，本OJ自下周星期一（3月5号）开始不再全面开放，请各位做好善后事宜，谢谢合作。	</div>
</div>
</center>
</div>
<title>Problem 2467. -- [中山市选2010]生成树 -- 衡阳八中OJ离线版-2012-02-29</title><center><h2>2467: [中山市选2010]生成树</h2><span class=green>Time Limit: </span>5 Sec&nbsp;&nbsp;<span class=green>Memory Limit: </span>128 MB<br><span class=green>Submit: </span>33&nbsp;&nbsp;<span class=green>Solved: </span>18<br>[<a href='submitpage.php?id=2467'>Submit</a>][<a href='problemstatus.php?id=2467'>Status</a>][<a href='bbs.php?id=2467'>Discuss</a>]</center><h2>Description</h2><div class=content><div style="text-indent: 21pt"><span style="font-size: medium">有一种图形叫做五角形圈。一个五角形圈的中心有1个由n个顶点和n条边组成的圈。在中心的这个n边圈的每一条边同时也是某一个五角形的一条边，一共有n个不同的五角形。这些五角形只在五角形圈的中心的圈上有公共的顶点。如图0所示是一个4-五角形圈。</span></div>
<div style="text-indent: 21pt"><span style="font-size: medium"><img height="278" width="284" alt="" src="/JudgeOnline/upload/201109/aaa.jpg" /></span></div>
<div style="text-indent: 21pt"><span style="font-size: medium">现在给定一个n五角形圈，你的任务就是求出n五角形圈的不同生成树的数目。还记得什么是图的生成树吗？一个图的生成树是保留原图的所有顶点以及顶点的数目减去一这么多条边,从而生成的一棵树。</span></div>
<div style="text-indent: 21pt"><span style="font-size: medium">注意：在给定的n五角形圈中所有顶点均视为不同的顶点。</span></div>
<p></p></div><h2>Input</h2><div class=content><p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><font size="3"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">输入包含多组测试数据。第一行包含一个正整数</span><span lang="EN-US"><font face="Times New Roman">T</font></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，表示测试数据数目。每组测试数据包含一个整数</span><i style="mso-bidi-font-style: normal"><span lang="EN-US"><font face="Times New Roman">n</font></span></i></font><span lang="EN-US"><font face="Times New Roman" size="3">(</font><span style="position: relative; top: 3pt; mso-text-raise: -3.0pt"><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><font size="3"><font face="Times New Roman"> 2&lt;=N&lt;=100</font></font></v:shapetype></span><font face="Times New Roman" size="3">)</font></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><font size="3">，代表你需要求解的五角形圈中心的边数。</font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><strong><span lang="EN-US"><o:p><font size="3">&nbsp;</font></o:p></span></strong></p>
<p></p></div><h2>Output</h2><div class=content><p class="MsoNormal" style="margin: 0cm 0cm 6pt; text-indent: 21pt; line-height: 115%; mso-para-margin-bottom: .5gd"><font size="3"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对每一组测试数据，输出一行包含一个整数</span><span lang="EN-US"><font face="Times New Roman">x</font></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，表示</span><span lang="EN-US"><font face="Times New Roman">n</font></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">五角形圈的生成树数目模</span><span lang="EN-US"><font face="Times New Roman">2007</font></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">之后的结果。</span></font><span lang="EN-US" style="font-size: 12pt; line-height: 115%"><o:p></o:p></span></p></div><h2>Sample Input</h2>
			<div class=content><span class=sampledata>1<br />
2<br />
</span></div><h2>Sample Output</h2>
			<div class=content><span class=sampledata>40</span></div><h2>HINT</h2>
			<div class=content><p></p></div><h2>Source</h2>
			<div class=content><p><a href='problemset.html?search='></a></p></div><center>[<a href='submitpage.php?id=2467'>Submit</a>][<a href='problemstatus.php?id=2467'>Status</a>][<a href='bbs.php?id=2467'>Discuss</a>]</center>﻿<br>

<a href="./"><span class=red>HOME</span></a>
<a href="javascript:history.go(-1)"><span class=red>Back</span></a>

<hr>
<center>
	<div class="footer">
			<a href=setlang.php?lang=ko>한국어</a>&nbsp;
		<a href=setlang.php?lang=cn>中文</a>&nbsp;
		<a href=setlang.php?lang=fa>فارسی</a>&nbsp;
		<a href=setlang.php?lang=en>English</a>&nbsp;
		<a href=setlang.php?lang=th>ไทย</a>
	<br>		<div>版权所有 &copy;2008-2012 WaterPark Organization. | <script src="http://s21.cnzz.com/stat.php?id=2982771&web_id=2982771" language="JavaScript"></script>
</div>
		<div>Based on opensource project <a href="http://hustoj.googlecode.com">hustoj</a>.</div>
	</div>
</center>
</body>
</html>
